package com.neu.ui.notifications;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.Observer;
import androidx.lifecycle.ViewModelProviders;
import androidx.navigation.Navigation;

import com.neu.R;
import com.neu.activity.LoginActivity;
import com.neu.ui.BaseFragment;

public class NotificationsFragment extends BaseFragment {

    private NotificationsViewModel notificationsViewModel;
    //登录按钮
    private Button btnLogin;


    @Override
    protected int layoutId() {//获得界面xml
        return R.layout.fragment_notifications;
    }

    @Override
    protected void initView(View view) {
        //获得对象的实例
        btnLogin=view.findViewById(R.id.btnLogin);
        btnLogin.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Navigation.findNavController(getView()).navigate(R.id.action_navigation_notifications_to_loginActivity);
            }
        });
    }

    @Override
    protected void initData() {

    }
}